package com.csg.ses.controller;

import com.alibaba.fastjson.JSONObject;
import com.csg.ses.service.ses.YxcfService;
import com.csg.ses.vo.yxxt.YxxtResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @auther wangjun
 * @time 2020/11/25 8:48
 */
@RestController
@RequestMapping("")
@Api(tags = "智能催费")
public class YxcfController {

    @Autowired
    private YxcfService yxcfService;

    /**
     * 接收营销系统发送催费用户清单通知
     * @param pcxx
     * @return
     */
    @ApiOperation(value = "接收营销系统发送催费用户清单通知")
    @ApiImplicitParam(name = "pcxx", value = "批次信息", dataType = "JSONObject", paramType = "body", required = true)
    @PostMapping("/zncfjg")
    public YxxtResult fscfyhqdtz(@RequestBody JSONObject pcxx) {
        return yxcfService.fscfyhqdtz(pcxx);
    }
}